/*
	练习1.16: cin 读取一组数,输出和
*/

#include<iostream>

int main()
{
	int value, sum=0;
	std::cout << "please input integer values " << std::endl;
	while(std::cin>>value)
	{
		sum += value;
	}
	std::cout  << "the sum is " << sum;
	
	return 0;
}